package cn.wolfcode.shop.service;

import cn.wolfcode.shop.domain.User;
import cn.wolfcode.shop.exception.GlobalException;

/**
 * Created by wolfcode-lanxw
 */
public interface IUserService {
    /**
     * 根据用户手机号获取用户对象
     * @param id
     * @return
     */
    User getById(Long id);

    /**
     * 用户登录
     * @param mobile
     * @param password
     */
    String login(String mobile, String password) throws GlobalException;
}
